#pragma once

#include "MessageOccurrenceSpecification.h"


namespace uml {

MessageOccurrenceSpecification::MessageOccurrenceSpecification(const QString& umlType)
    : OccurrenceSpecification(umlType) {}

void MessageOccurrenceSpecification::fromJson(const QJsonObject& json, QStringList& errorList) {
    if (json.isEmpty()) {
        return;
    }

    MessageEnd::fromJson(json, errorList);
    OccurrenceSpecification::fromJson(json, errorList);
}

void MessageOccurrenceSpecification::toJson(QJsonObject& json) {
    MessageEnd::toJson(json);
    OccurrenceSpecification::toJson(json);
}

} // namespace uml
